﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register Assembly="Winnow.SharepointDesigner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=53328ac4f6868226"
    Namespace="Winnow.SharepointDesigner.Controls" TagPrefix="cc1" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Site.aspx.cs" Inherits="Winnow.SharepointDesigner.Layouts.Winnow.SharepointDesigner.Site"
    DynamicMasterPageFile="~masterurl/minimal.master" %>

<style type="text/css">
    html, body
    {
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: hidden;
        font-family: calibri;
        font-size: 10px;
    }
    
    #borderContainer
    {
        width: 100%;
        height: 100%;
    }
    
    #HeadDiv
    {
        background: #e9edf1;
        border: 1px solid #e1e5e9;
        margin: 4px 4px 0p 4px;
    }
    #DetailsDiv
    {
        border: 1px solid #e1e5e9;
        margin: 0px 4px 4p 4px;
    }
    #HeadTitle
    {
        margin: 2px;
    }
</style>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dijit/themes/claro/claro.css"
    media="screen">
<!-- load dojo and provide config via data attribute -->
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js" data-dojo-config="parseOnLoad: true"></script>
<script>
    dojo.require("dijit.layout.ContentPane");
    dojo.require("dijit.layout.BorderContainer");
    dojo.require("dijit.layout.TabContainer");
    dojo.require("dijit.layout.AccordionContainer");

    dojo.require("dijit.MenuBar");
    dojo.require("dijit.PopupMenuBarItem");
    dojo.require("dijit.DropDownMenu");
    dojo.require("dijit.MenuItem");

    var loginName = "<%= Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.Name %>";</script>
</script>
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"> </script>
<form id="form1" runat="server">
<table width="100%">
    <tr>
        <td style="vertical-align: top">
            <cc1:DisplayLayout ID="DisplayLayout1" runat="server" Title="Site Information" Description="Site Information.">
                             <table>
                        <tr>
                            <td>
                                Title:
                            </td>
                            <td>
                                <asp:label runat="server" id="lblSiteName"></asp:label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Description:
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Web Address:
                            </td>
                            <td>
                                <asp:hyperlink runat="server" id="lnkUrl"></asp:hyperlink>
                            </td>
                        </tr>
                    </table>
            </cc1:DisplayLayout>
            <cc1:DisplayLayout runat="server" Title="Customization" Description="Customization.">
            <a href="/_layouts/themeweb.aspx" title="Change site theme" target="_blank">Change site theme</a>
            </cc1:DisplayLayout>
            <cc1:DisplayLayout  runat="server" Title="Settings" Description="Settings.">
            </cc1:DisplayLayout>
        </td>
        <td style="vertical-align: top">
            <cc1:DisplayLayout ID="DisplayLayout4" runat="server" Title="Permissions" Description="Permissions.">
             <asp:gridview runat="server" gridlines="None" id="grdPermissions" width="100%">
          
        </asp:gridview>
            </cc1:DisplayLayout>
            <cc1:DisplayLayout ID="DisplayLayout5" runat="server" Title="Subsites" Description="Subsites.">
            <asp:gridview runat="server" gridlines="None" id="grdSubSites" width="100%">
              <Columns>
        <asp:TemplateField>
             <ItemTemplate>
             <img src='/_layouts/images/SharePointFoundation16.png' />
                  <asp:Label runat="server" 
                                 Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>' />
             </ItemTemplate>
             </asp:TemplateField>
             </Columns>
        </asp:gridview>
            </cc1:DisplayLayout>
            <cc1:DisplayLayout ID="DisplayLayout6" runat="server" Title="Lists" Description="Lists.">
               <asp:gridview runat="server" gridlines="None" id="grdLists" width="100%">
        <Columns>
        <asp:TemplateField>
             <ItemTemplate>
             <img src='<%# DataBinder.Eval(Container.DataItem,"ImageUrl") %>' />
                  <asp:Label  runat="server" 
                                 Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>' />
             </ItemTemplate>
             </asp:TemplateField>
             </Columns>
        </asp:gridview>
            </cc1:DisplayLayout>
        </td>
    </tr>
</table>
</form>
